<!DOCTYPE html>
<!-- saved from url=(0031)./manageInvite -->
<html style="font-size: 23.4375px;">
<head>
    <include file="./public/header.html"/>
</head>
<body style="font-size: 21.7589px;">
<div id="app">
    <div id="shadow" style="display: none;"></div>
    <header class="top">
        <span></span>
        <ul>
            <li class="on"><a href="{:U('Users/manageInvite')}">下级开户</a></li>
            <li class=""><a href="{:U('Users/manageIcode')}">邀请码</a></li>
        </ul>
        <div class="iconfont back" style="display: none;"></div>
        <a href="{:U('Users/agentCenter')}" class="iconfont back"></a></header>

    <div data-v-5116ebf5="" style="padding-bottom: 0;" class="main creatAccount" s="[object Object]">
        <form action="{:U('Users/manageInvite')}" method="post" enctype="multipart/form-data" id="form">
            <div data-v-5116ebf5="" class="creatAccountTitle radio">
                开户类型
                <input data-v-5116ebf5="" type="radio" name="leixing" value="1" id="radio1" checked> <label data-v-5116ebf5="" for="radio1">代理类型</label>
                <input data-v-5116ebf5="" type="radio" name="leixing" value="2" id="radio2"> <label data-v-5116ebf5="" for="radio2">玩家类型</label>

                <p data-v-5116ebf5="">请先为下级设置返点，<a href="{:U('Users/re_k3')}" class="" style="color:#dc3b40" data-v-5116ebf5="">点击查看返点赔率表</a>
                </p></div>
            <div data-v-5116ebf5="" class="tabLI">
                <ul data-v-5116ebf5="" class="creatAccountDetail Backli">

                    <li data-v-5116ebf5=""><span data-v-5116ebf5="">时时彩</span><input id="ssc" data-v-5116ebf5="" type="number"
                                                                                     name="SSC" tag="时时彩返点"
                                                                                     placeholder="自身返点<?php echo sprintf('%.1f',$arr['ssc']);?>，可设置返点0.0-<?php echo sprintf('%.1f',$arr['ssc']);?>"
                                                                                     min="0.0"
                                                                                     max="<?php echo sprintf('%.1f',$arr['ssc']);?>"
                                                                                     class="va90"></li>
                    <li data-v-5116ebf5=""><span data-v-5116ebf5="">快3</span><input id="k3" data-v-5116ebf5="" type="number"
                                                                                    name="K3" tag="快3返点"
                                                                                    placeholder="自身返点<?php echo sprintf('%.1f',$arr['k3']);?>，可设置返点0.0-<?php echo sprintf('%.1f',$arr['k3']);?>"
                                                                                    min="0.0"
                                                                                    max="<?php echo sprintf('%.1f',$arr['k3']);?>"
                                                                                    class="va90"></li>
                    <li data-v-5116ebf5=""><span data-v-5116ebf5="">11选5</span><input id="x11_5" data-v-5116ebf5="" type="number"
                                                                                      name="SYX5" tag="11选5返点"
                                                                                      placeholder="自身返点<?php echo sprintf('%.1f',$arr['x11_5']);?>，可设置返点0.0-<?php echo sprintf('%.1f',$arr['x11_5']);?>"
                                                                                      min="0.0"
                                                                                      max="<?php echo sprintf('%.1f',$arr['x11_5']);?>"
                                                                                      class="va90"></li>
                    <li data-v-5116ebf5=""><span data-v-5116ebf5="">福彩3D</span><input id="f3d" data-v-5116ebf5="" type="number"
                                                                                      name="FC3D" tag="福彩3D返点"
                                                                                      placeholder="自身返点<?php echo sprintf('%.1f',$arr['fc3d']);?>，可设置返点0.0-<?php echo sprintf('%.1f',$arr['fc3d']);?>"
                                                                                      min="0.0"
                                                                                      max="<?php echo sprintf('%.1f',$arr['fc3d']);?>"
                                                                                      class="va90"></li>
                    <li data-v-5116ebf5=""><span data-v-5116ebf5="">排列3</span><input id="pl_35" data-v-5116ebf5="" type="number"
                                                                                     name="PL35" tag="排列3返点"
                                                                                     placeholder="自身返点<?php echo sprintf('%.1f',$arr['pl3_5']);?>，可设置返点0.0-<?php echo sprintf('%.1f',$arr['pl3_5']);?>"
                                                                                     min="0.0"
                                                                                     max="<?php echo sprintf('%.1f',$arr['pl3_5']);?>"
                                                                                     class="va90"></li>
                    <li data-v-5116ebf5=""><span data-v-5116ebf5="">北京快乐8</span><input id="kl8" data-v-5116ebf5="" type="number"
                                                                                       name="KL8" tag="北京快乐8返点"
                                                                                       placeholder="自身返点<?php echo sprintf('%.1f',$arr['kl8']);?>，可设置返点0.0-<?php echo sprintf('%.1f',$arr['kl8']);?>"
                                                                                       min="0.0"
                                                                                       max="<?php echo sprintf('%.1f',$arr['kl8']);?>"
                                                                                       class="va90">
                    </li>
                    <li data-v-5116ebf5=""><span data-v-5116ebf5="">北京PK10</span><input id="pk10" data-v-5116ebf5="" type="number"
                                                                                        name="PK10" tag="北京PK10返点"
                                                                                        placeholder="自身返点<?php echo sprintf('%.1f',$arr['pk10']);?>，可设置返点0.0-<?php echo sprintf('%.1f',$arr['pk10']);?>"
                                                                                        min="0.0"
                                                                                        max="<?php echo sprintf('%.1f',$arr['pk10']);?>"
                                                                                        class="va90">
                    </li>
                </ul>
            </div>
            <a data-v-5116ebf5="" class="BTN submitBtn" onclick="sav()">生成邀请码</a>
        </form>


        <div id="ssc1" class="layermbox layermbox0 layermshow" index="10" style="display: none">
            <div class="laymshade"></div>
            <div class="layermmain">
                <div class="section">
                    <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                        <button class="layermend"></button>
                        <div class="layermcont">时时彩返点不能为空</div>
                        <div class="layermbtn"><span type="1">确定</span></div>
                    </div>
                </div>
            </div>
        </div>
        <div id="ssc2" class="layermbox layermbox0 layermshow" index="10" style="display: none">
            <div class="laymshade"></div>
            <div class="layermmain">
                <div class="section">
                    <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                        <button class="layermend"></button>
                        <div class="layermcont">时时彩返点范围必须在0.0-<?php echo sprintf('%.1f',$arr['ssc']);?>之间</div>
                        <div class="layermbtn"><span type="1">确定</span></div>
                    </div>
                </div>
            </div>
        </div>
        <div id="k31" class="layermbox layermbox0 layermshow" index="10" style="display: none">
            <div class="laymshade"></div>
            <div class="layermmain">
                <div class="section">
                    <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                        <button class="layermend"></button>
                        <div class="layermcont">快3返点不能为空</div>
                        <div class="layermbtn"><span type="1">确定</span></div>
                    </div>
                </div>
            </div>
        </div>
        <div id="k32" class="layermbox layermbox0 layermshow" index="10" style="display: none">
            <div class="laymshade"></div>
            <div class="layermmain">
                <div class="section">
                    <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                        <button class="layermend"></button>
                        <div class="layermcont">快3返点范围必须在0.0-<?php echo sprintf('%.1f',$arr['k3']);?>之间</div>
                        <div class="layermbtn"><span type="1">确定</span></div>
                    </div>
                </div>
            </div>
        </div>
        <div id="x11_51" class="layermbox layermbox0 layermshow" index="10" style="display: none">
            <div class="laymshade"></div>
            <div class="layermmain">
                <div class="section">
                    <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                        <button class="layermend"></button>
                        <div class="layermcont">11选5返点不能为空</div>
                        <div class="layermbtn"><span type="1">确定</span></div>
                    </div>
                </div>
            </div>
        </div>
        <div id="x11_52" class="layermbox layermbox0 layermshow" index="10" style="display: none">
            <div class="laymshade"></div>
            <div class="layermmain">
                <div class="section">
                    <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                        <button class="layermend"></button>
                        <div class="layermcont">11选5返点范围必须在0.0-<?php echo sprintf('%.1f',$arr['x11_5']);?>之间</div>
                        <div class="layermbtn"><span type="1">确定</span></div>
                    </div>
                </div>
            </div>
        </div>
        <div id="fc3d1" class="layermbox layermbox0 layermshow" index="10" style="display: none">
            <div class="laymshade"></div>
            <div class="layermmain">
                <div class="section">
                    <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                        <button class="layermend"></button>
                        <div class="layermcont">福彩3D返点不能为空</div>
                        <div class="layermbtn"><span type="1">确定</span></div>
                    </div>
                </div>
            </div>
        </div>
        <div id="fc3d2" class="layermbox layermbox0 layermshow" index="10" style="display: none">
            <div class="laymshade"></div>
            <div class="layermmain">
                <div class="section">
                    <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                        <button class="layermend"></button>
                        <div class="layermcont">福彩3D返点范围必须在0.0-<?php echo sprintf('%.1f',$arr['fc3d']);?>之间</div>
                        <div class="layermbtn"><span type="1">确定</span></div>
                    </div>
                </div>
            </div>
        </div>
        <div id="pl351" class="layermbox layermbox0 layermshow" index="10" style="display: none">
            <div class="laymshade"></div>
            <div class="layermmain">
                <div class="section">
                    <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                        <button class="layermend"></button>
                        <div class="layermcont">排列3/5返点不能为空</div>
                        <div class="layermbtn"><span type="1">确定</span></div>
                    </div>
                </div>
            </div>
        </div>
        <div id="pl352" class="layermbox layermbox0 layermshow" index="10" style="display: none">
            <div class="laymshade"></div>
            <div class="layermmain">
                <div class="section">
                    <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                        <button class="layermend"></button>
                        <div class="layermcont">排列3/5返点范围必须在0.0-<?php echo sprintf('%.1f',$arr['pl3_5']);?>之间</div>
                        <div class="layermbtn"><span type="1">确定</span></div>
                    </div>
                </div>
            </div>
        </div>
        <div id="kl81" class="layermbox layermbox0 layermshow" index="10" style="display: none">
            <div class="laymshade"></div>
            <div class="layermmain">
                <div class="section">
                    <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                        <button class="layermend"></button>
                        <div class="layermcont">北京快乐8返点不能为空</div>
                        <div class="layermbtn"><span type="1">确定</span></div>
                    </div>
                </div>
            </div>
        </div>
        <div id="kl82" class="layermbox layermbox0 layermshow" index="10" style="display: none">
            <div class="laymshade"></div>
            <div class="layermmain">
                <div class="section">
                    <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                        <button class="layermend"></button>
                        <div class="layermcont">北京快乐8返点范围必须在0.0-<?php echo sprintf('%.1f',$arr['kl8']);?>之间</div>
                        <div class="layermbtn"><span type="1">确定</span></div>
                    </div>
                </div>
            </div>
        </div>
        <div id="pk101" class="layermbox layermbox0 layermshow" index="10" style="display: none">
            <div class="laymshade"></div>
            <div class="layermmain">
                <div class="section">
                    <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                        <button class="layermend"></button>
                        <div class="layermcont">北京PK10返点不能为空</div>
                        <div class="layermbtn"><span type="1">确定</span></div>
                    </div>
                </div>
            </div>
        </div>
        <div id="pk102" class="layermbox layermbox0 layermshow" index="10" style="display: none">
            <div class="laymshade"></div>
            <div class="layermmain">
                <div class="section">
                    <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                        <button class="layermend"></button>
                        <div class="layermcont">北京PK10返点范围必须在0.0-<?php echo sprintf('%.1f',$arr['pk10']);?>之间</div>
                        <div class="layermbtn"><span type="1">确定</span></div>
                    </div>
                </div>
            </div>
        </div>
        <!--邀请码生成-->
        <div id="code" class="layermbox layermbox0 layermshow" index="10" style="display: none">
            <div class="laymshade"></div>
            <div class="layermmain">
                <div class="section">
                    <div class="layermchild layerConfirm layermanim"><h3 style="">温馨提示</h3>
                        <button class="layermend"></button>
                        <div class="layermcont">·邀请码已生成，请点击邀请码管理进行查询·</div>
                        <div class="layermbtn layermbtn_1"><span type="1">确定</span></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
</body>
</html>
<script>
    $(".layermbtn").click(function(){
        $(this).parents(".layermbox").hide();
    })
    function sav() {
        var leixing = $(':radio[name="leixing"]:checked').val();
        //获取最大值
        var sscc = $("#ssc").attr("max");

        var kk3 = $("#k3").attr("max");
        var xx11_5 = $("#x11_5 ").attr("max");
        var fc3d = $("#f3d").attr("max");
        var ppl_35 = $("#pl_35").attr("max");
        var kkl8 = $("#kl8").attr("max");
        var ppk10 = $("#pk10").attr("max");


        var ssc = $('#ssc').val();
        var k3 = $('#k3').val();
        var x11_5 = $('#x11_5').val();
        var f3d = $('#f3d').val();
        var pl_35 = $('#pl_35').val();
        var kl8 = $('#kl8').val();
        var pk10 = $('#pk10').val();

        //判断不能为空
        if (ssc == "") {
            $("#ssc1").show();
            return false;
        }
        if (ssc < 0 || ssc > sscc) {
            $("#ssc2").show();
            return false;
        }

        if (k3 == "") {
            $("#k31").show();
            return false;
        }
        if (k3 < 0 || k3 > kk3) {
            $("#k32").show();
            return false;
        }
        if (x11_5 == "") {
            $("#x11_51").show();
            return false;
        }
        if (x11_5 < 0 || x11_5 > xx11_5) {
            $("#x11_52").show();
            return false;
        }
        if (f3d == "") {
            $("#fc3d1").show();
            return false;
        }
        if (f3d < 0 || f3d > fc3d) {
            $("#fc3d2").show();
            return false;
        }
        if (pl_35 == "") {
            $("#pl351").show();
            return false;
        }
        if (pl_35 < 0 || pl_35 > ppl_35) {
            $("#pl352").show();
            return false;
        }
        if (kl8 == "") {
            $("#kl81").show();
            return false;
        }
        if (kl8 < 0 || kl8 > kkl8) {
            $("#kl82").show();
            return false;
        }
        if (pk10 == "") {
            $("#pk101").show();
            return false;
        }
        if (pk10 < 0 || pk10 > ppk10) {
            $("#pk102").show();
            return false;
        }
        $.ajax({
            type: "POST",
            url: "{:U('Users/manageInvite')}",
            data: {
                'leixing': leixing,
                'ssc': ssc,
                'k3': k3,
                'x11_5': x11_5,
                'f3d': f3d,
                'pl_35': pl_35,
                'kl8': kl8,
                'pk10': pk10
            },
            success: function (dat) {
                if (dat == '1') {
                    $("#code").show();
                }
            }
        });
    }


    $(".layermbtn").click(function () {
        $("#ssc1").hide();
        $("#k31").hide();
        $("#x11_51").hide();
        $("#fc3d1").hide();
        $("#pl351").hide();
        $("#kl81").hide();
        $("#pk101").hide();
    });
    $(".layermbtn_1").click(function () {
        $("#code").hide(function () {
            window.location.href = "/Users/manageIcode";
        });
    })


</script>